export async function getInitialState() {
  let initstate = localStorage.getItem('INIT')??"{}";
  initstate = JSON.parse(initstate);
  return {
    curData: initstate.curData ?? [],
    userName: initstate.userName ?? '',
    type: initstate.type ?? '1',
    bgindex: initstate.bgindex ?? 1,
    dark: initstate.dark ?? false,
    bgs: initstate.bgs ?? [1, 3],
  };
}
